package org.example8.interpreter.impl;

import org.example8.interpreter.Expression;

/**
 * @author Stranger
 * @version 1.0
 * @description: TODO
 * @date 2022/12/12 21:12
 */
public class DivExpression implements Expression {

    private Expression expression1;

    private Expression expression2;

    public DivExpression(Expression expression1, Expression expression2) {
        this.expression1 = expression1;
        this.expression2 = expression2;
    }

    @Override
    public int interpreter() {
        return expression1.interpreter() / expression2.interpreter();
    }
}
